package com.ojoin.trade.t0loan_core.web.service;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.t0loan_core.web.domain.TbT0StatusOfPosTranscation;

/**
 * T+0贷款pos机交易记录状态服务接口
 * @author guoting
 *
 */
public interface T0StatusOfPosTranscationBaseService extends BaseService<TbT0StatusOfPosTranscation> {
	
	/**
	 * 新建九盈T+0贷款记录包含的pos机交易记录状态表记录(T0000013)
	 * @param posTranscantionId
	 * 
	 * 说明：
	 * 向tb_t0_status_of_pos_transcation_id表插入一条记录，记录状态为未放款未还款，记录业务日志
	 * 
	 * @throws BusinessException
	 */
	public int insertPosTransStatusInfo(String posTranscantionId) throws BusinessException;

	public void insertIntoPosTransStatusInfo(Integer joinuserid, String transdate) throws BusinessException;
	
	/**
	 * 更新九盈T+0贷款记录包含的pos机交易记录状态表记录的还款状态(T0000014)
	 * @param posTranscantionId
	 * 
	 * 说明：
	 * 更新tb_t0_status_of_pos_transcation_id表的指定Pos交易记录的状态为已还款，记录业务日志
	 * @throws BusinessException
	 */
	public int updatePosTransStatusInfoReturnStatus(Integer joinuserid, String transdate) throws BusinessException;

	/**
	 * 更新九盈T+0贷款记录包含的pos机交易记录状态表记录的放款状态
	 * @param posTranscantionId
	 * 
	 * 说明：
	 * 更新tb_t0_status_of_pos_transcation_id表的指定Pos交易记录的状态为已放款，记录业务日志
	 * @throws BusinessException
	 */
	public int updatePosTransStatusInfoUsedByLoanStatus(Integer joinuserid, String transdate) throws BusinessException;
}
